{% extends "base.html" %}

{% block login %}{% endblock %}
{% block search %}{% endblock %}

{%block content %}

<form method="post" action="">
    {% csrf_token %}
    {{ form.non_field_errors }}
    <table>
        <tr>
            <td>{{ form.username.errors }}</td>
        </tr>
    <tr>
        <td>{{ form.username.label_tag }}</td>
        <td>{{ form.username }}</td>
    </tr>
        <tr>
            <td>{{ form.password.errors }}</td>
        </tr>
    <tr>
        <td>{{ form.password.label_tag }}</td>
        <td>{{ form.password }}</td>
    </tr>
    </table>

    <input type="submit" value="Log in" />
    <input type="hidden" name="next" value="{{ next }}" />
</form>
<a href="/accounts/register">Register</a>

{% endblock %}

